package com.cyc.common.annotation.valid;

import com.cyc.common.config.RegionValidator;

import javax.validation.Constraint;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author chenyunchang
 * @version 1.0
 * @title
 * @date 2021/4/23 16:46
 * @Description:
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = RegionValidator.class)
public @interface CheckRegion {
    String message() default "Invalid param, please check your code bitch";

    Class[] groups() default {};

    Class[] payload() default {};
}
